package com.tanhua.autoconfig.properties;

import com.baidu.aip.face.AipFace;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;

/**
 * @Author: JW
 * @Description: TODO
 * @DateTime: 2021/12/21 20:10
 **/

@Data
@ConfigurationProperties(prefix = "tanhua.aip")
public class AipProperties {

    private String appId;
    private String aipKey;
    private String secretKey;

    @Bean
    public AipFace aipFace(){
        return new AipFace(appId,aipKey,secretKey);
    }


}
